package com.sfx.repository;

import com.sfx.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-07
 * Time: 19:39
 */
//数据仓库 ,直接来操作数据库的,做一些数据表的操作
@Repository
public class UserRepository {
    //User user = new User();
    @Autowired
    private User user;
    public User doUserRes(){
        user.setName("sfx");
        user.setId(66);
        user.setAge(99);
        return user;
    }
}
